/**
 * Copyright (c) 2016-2019 人人开源 All rights reserved.
 * <p>
 * https://www.renren.io
 * <p>
 * 版权所有，侵权必究！
 */

package com.songlanyun.modules.user.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.songlanyun.common.utils.PageUtils;

import com.songlanyun.modules.user.entity.SysRoleEntity;
import com.songlanyun.modules.user.entity.SysUserEntity;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;


/**
 * 角色
 *
 * @author Mark sunlightcs@gmail.com
 */
public interface SysRoleService extends IService<SysRoleEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void saveRole(SysRoleEntity role);

    void update(SysRoleEntity role);

    void deleteBatch(Long[] roleIds);

    Long getRoleIdByAdmin(Integer ptShopAdminRole);

    void saveUserRole(SysUserEntity user, Integer roleType);

	List<Long> getAdminUserRole();

	String getRoleNameByUserId(Long userId);

    Integer getRoleTypeByUserId(Long userId);
}
